
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TreasureThiefCfg : public ManualSingleton <TreasureThiefCfg>
{
	friend ManualSingleton <TreasureThiefCfg>;
public:
	TreasureThiefCfg();
	~TreasureThiefCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TreasureThiefCfgInfo *GetTreasureThiefCfgInfo(int32_t id);
	const TreasureThiefCfgMap *GetTreasureThiefCfgMap() { return &m_TreasureThiefCfgMap; }
private:
	TreasureThiefCfgMap m_TreasureThiefCfgMap;
};

#define  g_MakeTreasureThiefCfgTable() (TreasureThiefCfg::Instance())
#define  g_GetTreasureThiefCfgTable() (TreasureThiefCfg::GetInstance())
#define  g_DelTreasureThiefCfgTable() (TreasureThiefCfg::Destroy())